package com.toprs.business.query

import com.fasterxml.jackson.annotation.JsonIgnore
import com.toprs.base.query.BaseQuery
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotEmpty

class AppQuery(

    pageNo: Int,
    pageSize: Int,

    @Schema(description = "0 已发出 1 待处理 2 已处理  3 已办结 4 已关闭", required = true)
    @NotEmpty(message = "查询类型不能为空")
    var type: Int, // 0 已发出 1 待处理 2 已处理  3 已办结

    var startTimestamp: Long? = null,
    var endTimestamp: Long? = null,
    var deptId: Int? = null,
    @Schema(description = "查询未上报使用，其余不传或者null")
    var ifReport: Int? = null,


    @JsonIgnore
    var userid: String? = null,
    @JsonIgnore
    var manager: Boolean? = false,
    @JsonIgnore
    var boss: Boolean? = false,

    @Schema(description = "领导查询别人用户ID的申请")
    var otherUserId: String? = null

) : BaseQuery(pageNo, pageSize)